home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / Replace-1.0.sit / Replace! doc next >
Text File  |  1994-05-06  |  1KB  |  33 lines

  1.  
  2. Replace!
  3.  
  4. ゥ1994 by James W. Walker
  5. JWWalker@AOL.com
  6. May 5, 1994
  7.  
  8. When saving a file, one often sees a dialog like this:  (I am assuming that you are reading this document with TeachText or SimpleText, so you can see the pictures.)
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. I don't know about you, but when I see this dialog, about 90% of the time I do want to replace the existing file.  So I used ResEdit hacks to make the Replace button be the default, like so,
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. or to override the dialog entirely by saving with the option key down.  I distributed a document titled メReplace-Existing Hacksモ describing how to make these modifications by editing the PACK 3 resource in the System file.  But lately, I have found that the hacks do not work on the PowerMacs and some other recent models, because these Macs use directory dialog code that is not in a PACK 3 resource.  Hence the accompanying extension, which makes Replace the default button.
  27.  
  28. The Replace! extension patches one trap, _DialogDispatch.  The patch is very small and fast, and _DialogDispatch isnユt called all that often anyway, so there will not be any detectable change in your Macユs performance.  As for PowerMacs, since Apple has not yet implemented _DialogDispatch in native code, there would be no advantage to writing native code for my patch.
  29.  
  30. This extension is copyrighted freeware.  It may be distributed freely for non-commercial purposes.
  31.